Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dget.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ void usage()

int main(string[] args)
{
if (args.length == 1) return usage(), 1;
if (args.length == 1) { usage(); return 1; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Holy cow a comma operator in the wild, and it's in our repo. 😆

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd never doubt you would push the language to your advantage. :)


import std.getopt;
bool clone, help;
getopt(args,
"clone|c", &clone,
"help|h", &help);

if (help) return usage(), 0;
if (help) { usage(); return 0; }

import std.typetuple;
string user, repo;
Expand Down