diff options
author | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-06-27 04:56:45 +0000 |
---|---|---|
committer | beppu <beppu@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-06-27 04:56:45 +0000 |
commit | 431ad4c5125fd3d96373210fb138fc33683e375e (patch) | |
tree | 48b399259f741dc28e34da5955a72292031e946b /applets | |
parent | 16da061a195b0cab01034a4614cae320c9389d8e (diff) | |
download | busybox-w32-431ad4c5125fd3d96373210fb138fc33683e375e.tar.gz busybox-w32-431ad4c5125fd3d96373210fb138fc33683e375e.tar.bz2 busybox-w32-431ad4c5125fd3d96373210fb138fc33683e375e.zip |
+ littering my code w/ comments about what troubles me.
git-svn-id: svn://busybox.net/trunk/busybox@707 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'applets')
-rw-r--r-- | applets/busybox.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index 78f07e338..5f1c56bc3 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -420,10 +420,15 @@ int main(int argc, char **argv) | |||
420 | const struct BB_applet *a = applets; | 420 | const struct BB_applet *a = applets; |
421 | 421 | ||
422 | #ifdef BB_FEATURE_INSTALLER | 422 | #ifdef BB_FEATURE_INSTALLER |
423 | /* | ||
424 | * This style of argument parsing doesn't scale well | ||
425 | * in the event that busybox starts wanting more --options. | ||
426 | * If someone has a cleaner approach, by all means implement it. | ||
427 | */ | ||
423 | if (argc > 1 && (strcmp(argv[1], "--install") == 0)) { | 428 | if (argc > 1 && (strcmp(argv[1], "--install") == 0)) { |
424 | int use_symbolic_links = 0; | 429 | int use_symbolic_links = 0; |
425 | 430 | ||
426 | /* to use symlinks, or to not use symlinks... */ | 431 | /* to use symlinks, or not to use symlinks... */ |
427 | if (argc > 2) { | 432 | if (argc > 2) { |
428 | if ((strcmp(argv[2], "-s") == 0)) { | 433 | if ((strcmp(argv[2], "-s") == 0)) { |
429 | use_symbolic_links = 1; | 434 | use_symbolic_links = 1; |