Changeset 189
- Timestamp:
- Nov 10, 2004, 9:53:48 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dasscm/dasscm
r188 r189 13 13 #use POSIX qw/getpgrp tcgetpgrp/; 14 14 15 ##################################################################### 16 # 15 17 # global 18 # 16 19 my $SVN = "svn "; 17 20 21 ##################################################################### 22 # 18 23 # util functions 24 # 19 25 sub usage() 20 26 { 21 print "dasscm is intended to help versioning configuration files\n"; 27 print "dasscm is intended to help versioning configuration files\n\n"; 28 29 print "usage: dasscm <subcommand> [options] [args]\n\n"; 30 print "Available subcommands:\n"; 31 print " add <filename>\n"; 32 print " commit <filename>\n"; 33 print " diff <filename>\n"; 34 print " help <subcommand>\n"; 22 35 } 23 36 … … 91 104 92 105 93 106 ##################################################################### 107 # 94 108 # functions 95 109 96 110 sub help(;@) 97 111 { 98 print "help for @_\n"; 112 if( @_ == 0 ) { 113 usage(); 114 } else { 115 print "help for @_: ...\n"; 116 } 99 117 } 100 118 … … 173 191 } 174 192 193 ##################################################################### 194 # 175 195 # main 196 # 176 197 177 198 my $number_arguments = @ARGV;
Note:
See TracChangeset
for help on using the changeset viewer.