Skip to content

Commit 4ee256b

Browse files
committed
fix some --help stuff (add a link to the wiki and how to use debug)
closes [https://svn.forevermore.net/nuvexport/ticket/3 #3]
1 parent 78cd790 commit 4ee256b

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

trunk/nuv_export/cli.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ package nuv_export::cli;
128128
add_arg('version', 'Show the version and exit');
129129

130130
# Load the commandline options
131-
add_arg('help', 'Show nuvexport help');
131+
add_arg('help:s', 'Show nuvexport help');
132132
add_arg('debug', 'Enable debug mode');
133133

134134
# Load the commandline arguments

trunk/nuv_export/help.pm

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99
print "No help for $export_prog/", arg('mode'), "\n\n";
1010
}
1111

12-
print "Help section still needs to be updated.\n"
13-
." For now, use `man nuvexport`\n\n";
12+
if (arg('help') eq 'debug') {
13+
print "Please read https://svn.forevermore.net/nuvexport/wiki/debug\n";
14+
}
15+
16+
else {
17+
print "Help section still needs to be updated.\n"
18+
." For now, use `man nuvexport` or visit the nuvexport"
19+
." wiki at https://svn.forevermore.net/nuvexport/\n\n";
20+
}
1421

1522
exit;

trunk/nuvexport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
}
103103

104104
# Print the help - for now, this is just perldoc
105-
if (arg('help')) {
105+
if (defined arg('help')) {
106106
require nuv_export::help;
107107
}
108108

0 commit comments

Comments
 (0)